package com.cddx.logistics.mapper;

import com.cddx.logistics.domain.dto.QueryDTO;
import com.cddx.logistics.domain.pojo.Role;
import com.cddx.logistics.domain.pojo.RoleMenu;
import com.cddx.logistics.domain.vo.SelectObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {

    int addRole(Role role);

    int updateRole(Role role);

    int deleteRole(Integer id);

    List<Role> queryPage(QueryDTO queryDTO);

    List<SelectObject> queryAll();

    int deleteIds(Integer[] ids);

    List<Integer> queryMenu(Integer id);


    boolean deleteMenuByRoleId(Integer roleId);
    int batchInsert(List<RoleMenu> list);
}
